﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OneMile.DAL
{
    public sealed class DALFactory
    {
        private static DALFactory instance;
        public static DALFactory getInstance()
        {
            if (instance == null)
                instance = new DALFactory();
            return instance;
        }

        public DALSLogin CreateSLoginDAL()
        {
            return new DALSLogin();
        }

        public DALSOrder CreateSOrderDAL()
        {
            return new DALSOrder();
        }

        public DALUShops CreateUShopsDAL()
        {
            return new DALUShops();
        }

        public DALUCommodity CreateUCommodityDAL()
        {
            return new DALUCommodity();
        }
        public DALULogin CreateULoginDAL()
        {
            return new DALULogin();
        }
        public DALUFavorites CreateUFavoritesDAL()
        {
            return new DALUFavorites();
        }
        public DALUOrder CreateUOrderDAL()
        {
            return new DALUOrder();
        }
        public DALUPromotions CreateUPromotionsDAL()
        {
            return new DALUPromotions();
        }
        public DALUCoupon CreateUCouponDAL()
        {
            return new DALUCoupon();
        }

        public DALUUserAddress CreateUUserAddressDAL()
        {
            return new DALUUserAddress();
        }
    }
}
